package dbexp.model;

public class Datatype {

	private int max_size = -1;
	private int min_size = 1;
	private String pl_sql_subtypes = "";
	private int sql_type = -1;

	private String name = "";

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getMax_size() {
		return max_size;
	}

	public void setMax_size(int maxSize) {
		max_size = maxSize;
	}

	public int getMin_size() {
		return min_size;
	}

	public void setMin_size(int minSize) {
		min_size = minSize;
	}

	public String getPl_sql_subtypes() {
		return pl_sql_subtypes;
	}

	public void setPl_sql_subtypes(String plSqlSubtypes) {
		pl_sql_subtypes = plSqlSubtypes;
	}

	public int getSql_type() {
		return sql_type;
	}

	public void setSql_type(int sqlType) {
		sql_type = sqlType;
	}

	public static Datatype getVarchar2() {
		return varchar2;
	}

	public static void setVarchar2(Datatype varchar2) {
		Datatype.varchar2 = varchar2;
	}

	public static Datatype getChar_type() {
		return char_type;
	}

	public static void setChar_type(Datatype charType) {
		char_type = charType;
	}

	public static Datatype getNumber() {
		return number;
	}

	public static void setNumber(Datatype number) {
		Datatype.number = number;
	}

	public static Datatype getVarchar22() {
		return varchar22;
	}

	public static void setVarchar22(Datatype varchar22) {
		Datatype.varchar22 = varchar22;
	}

	public static Datatype getVarchar23() {
		return varchar23;
	}

	public static void setVarchar23(Datatype varchar23) {
		Datatype.varchar23 = varchar23;
	}

	public static Datatype getVarchar24() {
		return varchar24;
	}

	public static void setVarchar24(Datatype varchar24) {
		Datatype.varchar24 = varchar24;
	}

	public static Datatype getVarchar25() {
		return varchar25;
	}

	public static void setVarchar25(Datatype varchar25) {
		Datatype.varchar25 = varchar25;
	}

	public Datatype(String name, int maxs, int mins) {
		this.name = name;
		this.max_size = maxs;
		this.min_size = mins;
	}

	public Datatype(String name, int maxs, int mins, String subtypes) {
		this(name, maxs, mins);
		this.pl_sql_subtypes = subtypes;
	}

	public static Datatype varchar2 = new Datatype("VARCHAR2", 4000, 1,
			"STRING|VARCHAR");
	public static Datatype char_type = new Datatype("CHAR", 2000, 1,
			"CHARACTER");
	public static Datatype number = new Datatype("NUMBER", 4000, 1,
			"STRING|VARCHAR");
	public static Datatype varchar22 = new Datatype("VARCHAR2", 4000, 1,
			"STRING|VARCHAR");
	public static Datatype varchar23 = new Datatype("VARCHAR2", 4000, 1,
			"STRING|VARCHAR");
	public static Datatype varchar24 = new Datatype("VARCHAR2", 4000, 1,
			"STRING|VARCHAR");
	public static Datatype varchar25 = new Datatype("VARCHAR2", 4000, 1,
			"STRING|VARCHAR");
}
